-- GENERATED SPELL FOR [Goblin Craftsman] --


function spell0_1731(pUnit, Event) --@Melt Ore,n/a--
pUnit:FullCastSpellOnTarget(5159,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1731', 21500, 1)
end

function Sorts_1731(pUnit, Event)
local choix_sorts_1731 = math.random(0, 0)
if choix_sorts_1731 == 0 then
pUnit:RegisterEvent('spell0_1731', 1, 1)
end
end

function mob1731_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1731', math.random(1500, 3000), 1)
end

function mob1731_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1731_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1731_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1731, 1, 'mob1731_Action')
RegisterUnitEvent(1731, 2, 'mob1731_Leave')
RegisterUnitEvent(1731, 3, 'mob1731_Kill')
RegisterUnitEvent(1731, 4, 'mob1731_Die')
